import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Home from '../components/Home'
import Product from '../components/Product'
import Ajax from '../components/Ajax'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/Product/:id',
      name: 'Product',
      component: Product
    },
    {
      path: '/ajax',
      name: 'Ajax',
      component: Ajax
    }

  ]
})
